﻿@model IEnumerable<Learnive.Models.Huiswerk>

@{
    ViewBag.Title = "Huiswerk";
}

<h2>Huiswerk</h2> 

<table id="mail">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.huiswerkNaam)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.huiswerkDatum)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Vak.vakCode)
        </th>
        <th>
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink(item.huiswerkNaam, "Details", new { id=item.huiswerkID })
        </td>
        <td>
            @Html.ActionLink(item.huiswerkDatum, "Details", new { id=item.huiswerkID })
        </td>
        <td>
            @Html.ActionLink(item.Vak.vakCode, "Details", new { id=item.huiswerkID })
        </td>
        <td>
            @Html.ActionLink("Delete", "Delete", new { id=item.huiswerkID }, new { @class="delete" })
        </td>
    </tr>
}

</table>
<br />
@Html.ActionLink("Huiswerk Toevoegen", "Create", routeValues: null, htmlAttributes: new { @class="btn" })